/**  
 * 
 */
package com.astrocsr.domain.web;

import java.util.Date;
import java.util.List;

import com.astrocsr.common.util.DateUtil;

public class ModuleInfo {
	private String merName;
	private String moduleCode;
	private String moduleName;
	private String createdBy;
	private Date createdDate;
	private String moduleUri;
	private String orderBy;
	private String parent;

	private List<ModuleInfo> moduleInfoList;

	public ModuleInfo() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param merName
	 * @param moduleCode
	 * @param moduleName
	 * @param createdBy
	 * @param createdDate
	 * @param moduleUri
	 * @param orderBy
	 * @param parent
	 */
	public ModuleInfo(String merName, String moduleCode, String moduleName,
			String createdBy, Date createdDate, String moduleUri,
			String orderBy, String parent) {
		super();
		this.merName = merName;
		this.moduleCode = moduleCode;
		this.moduleName = moduleName;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
		this.moduleUri = moduleUri;
		this.orderBy = orderBy;
		this.parent = parent;
	}
	
	public ModuleInfo(String moduleCode, String moduleName,
					  String createdBy, Date createdDate, 
					  String moduleUri, String orderBy, String parent) {
		super();
		this.moduleCode = moduleCode;
		this.moduleName = moduleName;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
		this.moduleUri = moduleUri;
		this.orderBy = orderBy;
		this.parent = parent;
	}

	public String getMerName() {
		return merName;
	}

	public void setMerName(String merName) {
		this.merName = merName;
	}

	public String getModuleCode() {
		return moduleCode;
	}

	public void setModuleCode(String moduleCode) {
		this.moduleCode = moduleCode;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedDate() {
		return createdDate;
	}
	
	public String getDisplayCreatedDate() {
		return (createdDate != null)? DateUtil.formatLocalDashTime(createdDate): "";
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getModuleUri() {
		return moduleUri;
	}

	public void setModuleUri(String moduleUri) {
		this.moduleUri = moduleUri;
	}

	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public List<ModuleInfo> getModuleInfoList() {
		return moduleInfoList;
	}

	public void setModuleInfoList(List<ModuleInfo> moduleInfoList) {
		this.moduleInfoList = moduleInfoList;
	}

}
